package com.atguigu.srb.core.service;

import com.atguigu.srb.core.pojo.entity.Lend;
import com.atguigu.srb.core.pojo.vo.BorrowInfoApprovalVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 标的准备表 服务类
 * </p>
 *
 * @author fan
 * @since 2021-11-22
 */
public interface LendService extends IService<Lend> {

     Map<String, Object> showT(Long id);

    void createLend(BorrowInfoApprovalVO borrowInfoApprovalVO);

    List<Lend> getList();

    BigDecimal getInterestCount(BigDecimal interestAmount, BigDecimal lendYearRate, Integer period, Integer returnMethod);

    void makeLoan(Long id);
}
